package com.vankimgps.models;

public class ResponseLogin {
	private String msg;
	private int code;
	private UserInfos userInfo;
	
	public ResponseLogin(){
		this.msg = "";
		this.code = 0;
		userInfo = new UserInfos();
	}

	public void setMsg(String msg){
		this.msg = msg;
	}
	
	public String getMsg(){
		return msg;
	}
	
	public void setCode(int code){
		this.code = code;
	}
	
	public int getCode(){
		return code;
	}
	
	public void setUserInfo(UserInfos userInfo){
		this.userInfo.setAddres(userInfo.getAddress());
		this.userInfo.setContact(userInfo.getContact());
		this.userInfo.setNickName(userInfo.getNickName());
		this.userInfo.setRecID(userInfo.getRecID());
		this.userInfo.setToken(userInfo.getToken());
	}
	
	public UserInfos getUserInfo(){
		return userInfo;
	}
}
